const checkToken = require('./checkToken');
module.exports = async (ctx) => {
    let token = ctx.cookies.get('token');
    return ctx.session[token];
}